package models.msgs;

import models.*;

public class CardInfo implements IMessage{
    String handRepresentation;
    public CardInfo(String handRepresentation) {
	this.handRepresentation = handRepresentation;
    }

    public String getHandRepresentation() {
        return handRepresentation;
    }
    
	@Override
	public String getMessageString() {
		String cards = new String("");
		int card = Integer.parseInt(handRepresentation);
		for(int i = 0; i < 4; i++) {
			
			cards += (Deck2.giveFullName(card%100)) + ", ";
			card /= 100;
			
		}
		return cards;
		
	}
    
}
